<div id="second-sidebar">
                <ul class="tabs">
                    <li><a href="#random" class="active">Random</a></li>
                    <li><a href="#news">Recent</a></li>
                    <li><a href="#popular">Popular</a></li>
                </ul>
                <div class="tab_container">
                    <div id="random" class="tab_content">
                        <ul>  
            			  <?php 
            			  	global $post;
            			  	$args = array('numberposts' => 5, 'orderby' => 'rand');
            			  	$radom_posts = get_posts($args);
            			  	foreach ($radom_posts as $post) {
            			  		setup_postdata($post);
            			  ?>
            			  <li><a href='<?php the_permalink(); ?>'><?php the_title(); ?></a></li>
            			 <?php 	
            			  	}
            			  	wp_reset_postdata(); 
            			  ?>
            			</ul> 
                    </div>
                    
                    <div id="news" class="tab_content">
                        <ul>  
            			  <?php wp_get_archives('type=postbypost&limit=10'); ?>
            			</ul> 
                    </div>
                    
                    <div id="popular" class="tab_content">
                        <ul>  
		    			   <?php 
		                    global $post;
		                    $args = array('numberposts'=>10, 'orderby'=>'comment_count');
		                    $comment_posts = get_posts($args);
		                    foreach($comment_posts as $post) : setup_postdata($post); ?>
		                    <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
		                   <?php endforeach; wp_reset_postdata();?>
		    			</ul> 
                    </div>
                </div><!--end tab_container-->
                
                <div class="widget">
                    <h2>Discussion</h2>
                         <ul>  
                            <li>
                                <strong><a href="#">Lorem ipsum dolor sit amet</a></strong>
                                <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.</p>
                            </li>
                            
                            <li>
                                <strong><a href="#">Lorem ipsum dolor sit amet</a></strong>
                                <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.</p>
                            </li>
                            
                            <li>
                                <strong><a href="#">Lorem ipsum dolor sit amet</a></strong>
                                <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.</p>
                            </li>
                         </ul> 
                </div>
            </div><!--end second-sidebar-->
        </div><!--end content-wrap-->
